<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Result</title>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/google-code-prettify@1.0.5/bin/prettify.min.css">
<link href="../style.css" rel="stylesheet" />
</head>
<body onload="PR.prettyPrint()">
<pre class="prettyprint lang-java">
public class Result implements Serializable{

    private int code; //错误代码
    private String msg; //提示信息
    private Apply data; //数据

    public int getCode(){
        return code;
    }

    public void setCode(int code){
        this.code = code;
    }

    public String getMsg(){
        return msg;
    }

    public void setMsg(String msg){
        this.msg = msg;
    }

    public Apply getData(){
        return data;
    }

    public void setData(Apply data){
        this.data = data;
    }

}
</pre>


<pre class="prettyprint lang-java">
public class Apply implements Serializable{

    private int id; //自增,不传
    private String fromUser; //申请人.自动填写,不传
    private int bookId; //二手书id
    private String status; //查看状态

    public int getId(){
        return id;
    }

    public void setId(int id){
        this.id = id;
    }

    public String getFromUser(){
        return fromUser;
    }

    public void setFromUser(String fromUser){
        this.fromUser = fromUser;
    }

    public int getBookId(){
        return bookId;
    }

    public void setBookId(int bookId){
        this.bookId = bookId;
    }

    public String getStatus(){
        return status;
    }

    public void setStatus(String status){
        this.status = status;
    }

}
</pre>



<script src="https://cdn.jsdelivr.net/npm/google-code-prettify@1.0.5/bin/prettify.min.js"></script>
</body>
</html>